package com.zmn.oms.services.interfaces.redistribute;

import com.zmn.oms.model.entity.redistribute.OrderWorkRedistributeMaster;

import java.util.Date;
import java.util.List;

public interface OrderWorkRedistributeMasterService {
    int delete(Long id);

    int insert(OrderWorkRedistributeMaster record);

    OrderWorkRedistributeMaster selectByPrimaryKey(Long id);

    List<OrderWorkRedistributeMaster> selectByQuery(OrderWorkRedistributeMaster query);

    List<OrderWorkRedistributeMaster> selectByQuerySrcMaster(OrderWorkRedistributeMaster query);

    int updateByPrimaryKeySelective(OrderWorkRedistributeMaster record);

    Integer batchInsert(List<OrderWorkRedistributeMaster> redistributeMasterList);

    Integer updateStatusByRedistributeId(Long redistributeId, int status);

    OrderWorkRedistributeMaster findByRedistributeIdAndMasterId(Long redistributeId, Integer masterId);

    Integer deleteByCreateTimeAndStatus(Date createTime, int status);
}